package com.hongyun.tms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 拖轮费率
 * </p>
 *
 * @author liPeng
 * @since 2024-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("TMS_M_RATE")
@ApiModel(value="TmsMRate对象", description="拖轮费率")
public class MRate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId("ID")
    private Long id;

    @ApiModelProperty(value = "船长-起")
    @TableField("LENGTH_START")
    private Integer lengthStart;

    @ApiModelProperty(value = "船长-止")
    @TableField("LENGTH_END")
    private Integer lengthEnd;

    @ApiModelProperty(value = "贸别：内贸，外贸")
    @TableField("TRADE_TYPE")
    private String tradeType;

    @ApiModelProperty(value = "船舶类型代码")
    @TableField("SHIP_KIND_CODE")
    private String shipKindCode;

    @ApiModelProperty(value = "船舶类型名称")
    @TableField("SHIP_KIND_NAME")
    private String shipKindName;

    @ApiModelProperty(value = "费率")
    @TableField("RATE")
    private Long rate;

    @ApiModelProperty(value = "创建人ID")
    @TableField("CREATE_BY")
    private Long createBy;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("CREATE_BY_NAME")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField("UPDATE_BY")
    private Long updateBy;

    @ApiModelProperty(value = "修改人姓名")
    @TableField("UPDATE_BY_NAME")
    private String updateByName;

    @ApiModelProperty(value = "修改时间")
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否删除")
    @TableField("IS_DELETED")
    @TableLogic
    private Integer isDeleted;
}
